// Size.cpp

#include "Size.h"

/**
* Constructor.
*/
Size::Size() : width( 10 ), height( 10 ) { }

/**
* Constructor.
*
* @param width the width.
* @param height the height.
*/
Size::Size( const int width, const int height )
: width( width ), height( height ) { }

/**
* Destructor.
*/
Size::~Size() { }

/**
* Assignment operator overloading.
*/
Size& Size::operator=( const Size& s )
{
	if ( this != &s )
	{
		width = s.width;
		height = s.width;
	}

	return *this;
}

/**
* Returns width.
*
* @return int the width value.
*/
int Size::getWidth() const
{
	return width;
}

/**
* Sets width.
*
* @param width the new width.
*/
void Size::setWidth( const int width )
{
	this->width = width;
}

/**
* Returns height.
*
* @return int the height value.
*/
int Size::getHeight() const
{
	return height;
}

/**
* Sets height.
*
* @param height the new height.
*/
void Size::setHeight( const int height )
{
	this->height = height;
}
